import { createApp } from 'vue';
import App from './App.vue';
import router from '@/router';
import store from './store';
import Antd from 'ant-design-vue';
import i18n from '@/i18n';
import { setupGlobalIcons, setupDirectives } from '@/plugins';

import 'ant-design-vue/dist/antd.less';

const app = createApp(App);

// 注册图标
setupGlobalIcons(app);
// 注册全局自定义指令
setupDirectives(app);

app.use(i18n).use(store).use(router).use(Antd).mount('#app');
